package work1.work2.university;



public class University {
    double math, english, chinese, sport;
    University(){

    }
    void  University(double math,double english,double chinese,double sport){
        this.math=math;
        this.english=english;
        this.chinese=chinese;
        this.sport=sport;
    }

    void enter() {
        if (math + english + chinese + sport >= 180 & sport >= 60) {
            System.out.println("恭喜！三门课的总分是：" + math+ english+ chinese + "且体育达标，达到大学录取线");
        }
        else {
            System.out.println("你落榜啦！！！");
        }
    }
}
